package org.linlinjava.litemall.core.systemConfig;

import java.math.BigDecimal;

/**
 * 系统设置
 */

public class SystemConfig {
    public static Integer getLotteryIntegral(){
        return ConfigService.getCfg().getSysValueInt("lotteryIntegeral");
    }
    public static String getChongzhiRemindValue(){
        return ConfigService.getCfg().getSysValue("merchansim.remindInfo");
    }
    public static String getServiceNum(){
        return ConfigService.getCfg().getSysValue("serviceNum");
    }
    public static Integer getCateGory(){
        return  ConfigService.getCfg().getSysValueInt("category.id");
    }
    public static Integer getInteger(){
        return ConfigService.getCfg().getSysValueInt("categoryid.integral");
    }
    //爱联超市 level=1
    public static Integer getCatePrice(){
        return  ConfigService.getCfg().getSysValueInt("categoryid.price");
    }
    //积分商城 level=1
    public static Integer getCateIntegral(){
        return  ConfigService.getCfg().getSysValueInt("category.three");
    }
    //批量采购 level=2
    public static Integer getCateGoryL2(){
        return  ConfigService.getCfg().getSysValueInt("category.l2id");
    }
    //团购 level=2
    public static Integer getGroup(){
        return ConfigService.getCfg().getSysValueInt("categoryid.groupbuy");
    }
    // 兑一送一 level=2
    public static Integer getCateDuiHuan(){
        return  ConfigService.getCfg().getSysValueInt("category.baokuancategory");
    }
    public static Integer getAiLianNum(){
        return ConfigService.getCfg().getSysValueInt("aiLianSelf.num");
    }
    public static String getReturnWord(){
        return ConfigService.getCfg().getSysValue("homePage.remindWord");
    }
    public static String getShopWord(){
        return ConfigService.getCfg().getSysValue("shop.remindWord");
    }
    public static String getReturnToMechanimPercent(){
        return ConfigService.getCfg().getSysValue("returnToMechanim.percent");
    }
    public static String getReturnToUserPercent(){
        return ConfigService.getCfg().getSysValue("returnToUser.percent");
    }
    public static Integer getMemberCharge(){
        return  ConfigService.getCfg().getSysValueInt("member.charge");
    }
    public static Integer getMechanismCharge(){
        return  ConfigService.getCfg().getSysValueInt("mechanism.charge");
    }
	public static Integer getMemberNumber() {
		return ConfigService.getCfg().getSysValueInt("member.number");
	}
    public static Integer getNewLimit() {
        return ConfigService.getCfg().getSysValueInt("indexlimit.new");
    }

    public static Integer getHotLimit() {
        return ConfigService.getCfg().getSysValueInt("indexlimit.hot");
    }

    public static Integer getBrandLimit() {
        return ConfigService.getCfg().getSysValueInt("indexlimit.brand");
    }

    public static Integer getTopicLimit() {
        return ConfigService.getCfg().getSysValueInt("indexlimit.topic");
    }

    public static Integer getCatlogListLimit() {
        return ConfigService.getCfg().getSysValueInt("indexlimit.catloglist");
    }

    public static Integer getCatlogMoreLimit() {
        return ConfigService.getCfg().getSysValueInt("indexlimit.catloggood");
    }

    public static String getHotBannerTitle() {
        return ConfigService.getCfg().getSysValue("banner.hot.title");
    }

    public static String getNewBannerTitle() {
        return ConfigService.getCfg().getSysValue("banner.new.title");
    }

    public static String getHotImageUrl() {
        return ConfigService.getCfg().getSysValue("banner.hot.imageurl");
    }

    public static String getNewImageUrl() {
        return ConfigService.getCfg().getSysValue("banner.new.imageurl");
    }

    public static BigDecimal getFreight() {
        return new BigDecimal(ConfigService.getCfg().getSysValue("freight.value"));
    }

    public static BigDecimal getFreightLimit() {
        return new BigDecimal(ConfigService.getCfg().getSysValue("freight.limit"));
    }

    public static Long getProxy3Mechanism1(){
        return new Long(ConfigService.getCfg().getSysValue("proxy3merchanism1"));
    }
    public static Long getProxy3Mechanism2Less5(){
        return new Long(ConfigService.getCfg().getSysValue("proxy3merchanism2less5"));
    }
    public static Long getProxy3Mechanism2more5(){
        return new Long(ConfigService.getCfg().getSysValue("proxy3merchanism2more5"));
    }
    public static Long getProxy3Mechanism3(){
        return new Long(ConfigService.getCfg().getSysValue("proxy3merchanism3"));
    }
    public static Long getProxy3Mechanism4(){
        return new Long(ConfigService.getCfg().getSysValue("proxy3merchanism4"));
    }
    public static Long getProxy4Mechanism1(){
        return new Long(ConfigService.getCfg().getSysValue("proxy4merchanism1"));
    }
    public static Long getProxy4Mechanism2(){
        return new Long(ConfigService.getCfg().getSysValue("proxy4merchanism2"));
    }
    public static Long getProxy4Mechanism3(){
        return new Long(ConfigService.getCfg().getSysValue("proxy4merchanism3"));
    }
    public static Long getProxy4Mechanism4Less12(){
        return new Long(ConfigService.getCfg().getSysValue("proxy4merchanism4less12"));
    }
    public static Long getProxy4Mechanism4More12(){
        return new Long(ConfigService.getCfg().getSysValue("proxy4merchanism4more12"));
    }
}
